package com.kunbo.mapper;

import com.kunbo.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    //查找byid
    User selectById(int id);
    //查找by用户名
    User selectByName(String userName);
    //添加人员
    int insertUser(User user);
    //修改级别

    //修改状态
    int updateStatus(int id, int status);
    //修改密码
    int updatePassword(int id, int password);

}
